from books.models import Author, Publisher, Book
from django.contrib import admin

class AuthorAdmin(admin.ModelAdmin):
    pass
admin.site.register(Author, AuthorAdmin)

class PublisherAdmin(admin.ModelAdmin):
    pass
admin.site.register(Publisher, PublisherAdmin)

class BookAdmin(admin.ModelAdmin):
    #pass
    list_display = ('title', 'publisher', 'publication_date')
    list_filter = ('publisher', 'publication_date')
    ordering = ('-publication_date',)
    search_fields = ('title',)
admin.site.register(Book, BookAdmin)
